﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Exceptions
{
    /// <summary>
    /// Exception used when a media type formatter was needed and not found.
    /// </summary>
    public class MediaTypeFormatterNotFoundException : Exception
    {
        public MediaTypeFormatterNotFoundException()
            : base("No media type formatter could be found for the associated request.") { }
        public MediaTypeFormatterNotFoundException(bool isRequest)
            : base("No media type formatter could be found for the associated " + (isRequest ? "request" : "response")) { }
    }
}
